package mail

//// 发送邮件
//func SendEmail(email, subject, body string) error {
//	c := conf.GetConfig()
//	m := gomail.NewMessage()
//	m.SetHeader("From", c.Mail.From)
//	m.SetHeader("To", email)
//	m.SetHeader("Subject", subject)
//	m.SetBody("text/html", body)
//
//	d := gomail.NewDialer(c.Mail.Host, c.Mail.Port, c.Mail.User, c.Mail.SMTPCode)
//	return d.DialAndSend(m)
//}
